import { axios } from '@/utils/request'

/**
 * 查询分页列表
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function parentPage (parameter) {
  return axios({
    url: '/Parent/Page',
    method: 'get',
    params: parameter
  })
}

/**
 * 系统下拉列表
 *
 * @author yubaoshan
 * @date 2020/6/21 23:50
 */
export function parentList (parameter) {
  return axios({
    url: '/Parent/List',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function parentAdd (parameter) {
  return axios({
    url: '/Parent/Add',
    method: 'post',
    data: parameter
  })
}
//parent
/**
 * 编辑
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function parentEdit (parameter) {
  return axios({
    url: '/Parent/Edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除系统职位
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function parentDelete (parameter) {
  return axios({
    url: '/Parent/Delete',
    method: 'post',
    data: parameter
  })
}
//

/**
 * 开启关闭微信
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
 export function openOrCloseWeChat (parameter) {
  return axios({
    url: '/Parent/OpenOrCloseWeChat',
    method: 'post',
    data: parameter
  })
}
/**
 * 批量开启关闭微信
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function batchOpenOrCloseWeChat (parameter) {
  return axios({
    url: '/Parent/BatchOpenOrCloseWeChat',
    method: 'post',
    data: parameter
  })
}

/**
 * 重置密码
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
 export function resetpassword (parameter) {
  return axios({
    url: '/Parent/Reset',
    method: 'post',
    data: parameter
  })
}
//


/**
 * 导出系统职位
 *
 * @author yubaoshan
 * @date 2021/5/29 16:19
 */
export function sysPosExport (parameter) {
  // return axios({
  //   url: '/sysPos/export',
  //   method: 'get',
  //   params: parameter,
  //   responseType: 'blob'
  // })
}

export function degreeList(){
  return [
    {label: '未知', id: 0},
    {label: '小学', id: 1},
    {label: '初中', id: 2},
    {label: '高中', id: 3},
    {label: '大专', id: 4},
    {label: '本科', id: 5},
    {label: '研究生及以上', id: 6},
  ]
}


export function relationList(){
  return [
    {label: '父亲', id: 1},
    {label: '母亲', id: 2},
    {label: '爷爷', id: 3},
    {label: '奶奶', id: 4},
    {label: '外公', id: 5},
    {label: '外婆', id: 6},
    {label: '哥哥', id: 7},
    {label: '姐姐', id: 8},
    {label: '其他', id: 9},

  ]
}
// 导出无头像家长数据
export function ExportChildren () {
  return axios({
    url: '/Parent/ExportChildren',
    method: 'get',
    responseType: 'blob'
  })
}